{yun:}include file="$comstyle/header.htm"{/yun} 
<div class="w1000">
  <div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun} 
    <script>
function paycheck(type){
	var type; 
	if(type=="bank"){
		document.getElementById('payform').action="index.php?c=payment&act=paybank";
		$(".alipaytype").hide();
		$(".paybank").show();
		$("#payform").attr("target","supportiframe");
	}else{
		if(type=="alipay"){
			$(".alipaytype").show();
			document.getElementById('payform').action="../api/alipay/alipayto.php";
		}else{
			$(".alipaytype").hide();
		}
		if(type=="alipaydual"){
			document.getElementById('payform').action="../api/alipaydual/alipayto.php";
		}
		if(type=="alipayescow"){
			document.getElementById('payform').action="../api/alipayescow/alipayto.php";
		}
		if(type=="tenpay"){
			document.getElementById('payform').action="../api/tenpay/index.php";
		}
		
		$(".paybank").hide(); 
		$("#payform").attr("target","_blank");
	} 
	if(type=="99bill" || type=="paypal" || type=="cncard"){ 
		layer.msg('此接口暂未开放！', 2, 8);
		document.getElementById('py1').checked="checked";
	}
}
$(function(){ 
	
	$("input[name='pay_bank']").eq(0).attr("checked",true);
	{yun:}if $company.link_null==''{/yun}
	$("input[name='linkway']").attr("checked",false);
	$("#linkway_1").attr("checked",true);
	{yun:}/if{/yun}
});
function invoice(type){
	if(type=='1'){$(".invoice_title").show();}else{$(".invoice_title").hide();}	
}
function payforms(){

	var pay_bank=$("input[name='pay_bank']:checked").val();
	
	var linkway=$("input[name='linkway']:checked").val();
	
	
	if(pay_bank==''){
		layer.msg('请选择支付方式！', 2, 8);return false; 
	}else if(pay_bank=='bank'){
		
		if($("#bank_name").val()==""){
			layer.msg('请填写汇款银行！', 2,8);return false;
		}
		if($("#bank_number").val()==""){
			layer.msg('请填写汇入账号！', 2,8);return false;
		}
		if($("#bank_price").val()==""){
			layer.msg('请填写汇款金额！', 2,8);return false;
		}
		if($("#bank_time").val()==""){
			layer.msg('请填写汇款时间！', 2,8);return false;
		}
	} else{
		$.layer({
			type : 1,
			title :'提示',
			closeBtn : [0 , true],
			border : [10 , 0.3 , '#000', true],
			area : ['450px','280px'],
			page : {dom :"#payshow"}
		});
	}
}

</script>

<div class=right_box>
	<div class=admincont_box>
		<div class="com_tit"><span class="com_tit_span">订单确认</span></div>  
		
		<div class="com_body">
			<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
			<form name="alipayment"  id="payform" action="{yun:}if $config.alipaytype=='1'&&$config.alipay=='1'{/yun}../api/alipay/alipayto.php{yun:}elseif $config.alipaytype=='2'&&$config.alipay=='1'{/yun}../api/alipaydual/alipayto.php{yun:}elseif $config.alipaytype=='3'&&$config.alipay=='1'{/yun}../api/alipayescow/alipayto.php{yun:}elseif $config.tenpay=='1'&&$config.alipay=='0'{/yun}../api/tenpay/index.php{yun:}/if{/yun}" method="post" {yun:}if $config.tenpay=='1'||$config.alipay=='1'{/yun}target="_blank"{yun:}/if{/yun} onsubmit="return payforms();" enctype="multipart/form-data">

				<div class="clear"></div>
				
				<div class="pay_ment_box">
					<div class="pay_ment_box_left">
						<div class="pay_ment_box_n"> 
							订单号：{yun:}$order.order_id{/yun}
							<input type="hidden" name="dingdan" value="{yun:}$order.order_id{/yun}"/>
						</div>

						<div class="pay_ment_jiner">支付金额</div>
						<div class="pay_ment_jiner_n"><strong>￥{yun:}$order.order_price{/yun}</strong> 元 (订单金额：￥{yun:}$order.order_price{/yun})</div>

						<input type="hidden" name="aliorder" value="{yun:}$order.order_id{/yun}" />
						<input type="hidden"  value="{yun:}$order.id{/yun}" name='oid' id='oid'/>
						<input type="hidden" name="alimoney" value="{yun:}$order.order_price{/yun}"/>
						<input type="hidden" name="pay_type" value="{yun:}$order.pay_type{/yun}"/> 
						<input type="hidden" name="subject" value="{yun:}if $order.type=='1'{/yun}购买会员{yun:}else if $order.type=='10'{/yun}置顶服务金额{yun:}else if $order.type=='11'{/yun}紧急招聘金额{yun:}else if $order.type=='12'{/yun}职位推荐金额{yun:}else if $order.type=='13'{/yun}自动刷新金额{yun:}else{/yun}充值{yun:}/if{/yun}"/> 
					</div>
				</div> 
				
				<div class="clear"></div>
           
				<div class="payment_choose"> 
					<div class="payway"> 
						
						{yun:}if $config.tenpay=='1'||$config.bank=='1'||$config.alipay=='1'{/yun}
							<div class="payment_zfb">在线支付</div>
							<ul class="paytype-list bank-list">
								{yun:}if $config.alipay=='1'{/yun}
									<li class="item">
										<input id="check-alipay" class="radio" type="radio" checked="checked" name="pay_bank" value="directPay" onclick="paycheck('alipay');">
										<label class="bank bank--alipay" for="check-alipay">支付宝</label>
									</li>
								{yun:}/if{/yun}
								
								{yun:}if $config.tenpay=='1'{/yun}
									<li class="item">
										<input id="check-tenpay" class="radio" type="radio"  name="pay_bank" {yun:}if $config.alipay=='0'{/yun}checked="checked"{yun:}/if{/yun} value="tenpay" onclick="paycheck('tenpay');">
										<label class="bank bank--tenpay " for="check-tenpay">财付通{yun:}$config.alipay{/yun}</label>
									</li>
								{yun:}/if{/yun}
								
								
								
								{yun:}if $config.bank=='1'&&is_array($rows)&&$rows{/yun}
									<li class="item">
										<input id="check-bank" class="radio" type="radio"  name="pay_bank" value="bank" onclick="paycheck('bank');">
										<label class="bank bank--yinlian" for="check-bank">
											<span class='pay_Money' style="float:left;padding-top:5px;width:100%;text-align:center;">银行汇款</span>
										</label>
									</li>
								{yun:}/if{/yun}
							</ul>
						{yun:}else{/yun}
							<div class="con_banner_no" style="width:300px;"><span></span><em>网站已关闭支付接口，请联系管理员</em></div>
						{yun:}/if{/yun}
				
						{yun:}if $config.bank=='1'&&is_array($rows)&&$rows{/yun}
							<div class="paybank item" {yun:}if $config.tenpay=='1'||$config.alipay=='1'{/yun}style="display:none"{yun:}/if{/yun}>   
								<div class="clear"></div>             
								<div class="admin_tit" style="padding:20px 0; font-weight:bold">
									<span>已添加银行</span>
									<span class="com_remind">请仔细核对银行帐号</span>
								</div>
								<div class=admin_note2 >
									<table width="100%" border="0" cellpadding="0" cellspacing="1" class="my_table_msg">
										
										<tr>
											<th width="8%"  height="26" align="center" bgcolor="#F7FAFF">银行名称</th>
											<th width="5%"  height="26" align="center" bgcolor="#F7FAFF">开户人</th>
											<th width="12%" align="center" bgcolor="#F7FAFF">银行帐户</th>
											<th width="14%" align="center" bgcolor="#F7FAFF">开户行</th>
										</tr>

										{yun:}if is_array($rows){/yun}
											{yun:}foreach item=blist from=$rows{/yun}
												<tr>
													<td  height="26" align="center" bgcolor="#FFFFFF">{yun:}$blist.bank_name{/yun}</td>
													<td  height="26" align="center" bgcolor="#FFFFFF">{yun:}$blist.name{/yun}</td>
													<td align="center" bgcolor="#FFFFFF">{yun:}$blist.bank_number{/yun}</td>
													<td align="center" bgcolor="#FFFFFF">{yun:}$blist.bank_address{/yun}</td>
												</tr>
											{yun:}/foreach{/yun}
										{yun:}else{/yun}
											<tr><td colspan="4"  height="26" align="center" bgcolor="#FFFFFF">暂未添加银行</td></tr>
										{yun:}/if{/yun}

									</table>

									<table width="100%" border="0" cellpadding="0" cellspacing="1" class="my_table_msg">
										<tr>
											<td height="26" align="center" bgcolor="#FFFFFF">汇款银行:</td>
											<td colspan="3" height="26" bgcolor="#FFFFFF">
												<input type="text" id="bank_name" name="bank_name" class="com_info_text" value="{yun:}if $order.bank_name{/yun}{yun:}$order.bank_name{/yun}{yun:}/if{/yun}" placeholder="例如：中国银行+沭阳开发区支行" />
											</td>
										</tr> 

										<tr>
											<td height="26" align="center" bgcolor="#FFFFFF">汇入账号:</td>
											<td colspan="3" height="26"  bgcolor="#FFFFFF"><input type="text" id="bank_number" name="bank_number" class="com_info_text" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" value="{yun:}$order.bank_number{/yun}" /></td>
										</tr> 

										<tr>
											<td height="26" align="center" bgcolor="#FFFFFF">汇款金额:</td>
											<td width="8%" height="26"  bgcolor="#FFFFFF"><input type="text" id="bank_price" name="bank_price" class="com_info_text" value="{yun:}$order.order_price{/yun}" /></td>
											<td  align="center" bgcolor="#FFFFFF">汇款时间:</td>
											<td  align="center" bgcolor="#FFFFFF">
												<input type="text" id="bank_time" name="bank_time" style="width:120px" class="com_info_text" />
												<script type="text/javascript">
													layui.use(['laydate'], function(){var laydate = layui.laydate,$ = layui.$;laydate.render({elem: '#bank_time'});});
												</script>
											</td>
										</tr>
										<tr>
											<td height="26" align="center" bgcolor="#FFFFFF">上传汇款单:</td>
											<td colspan="3" height="26"  bgcolor="#FFFFFF">
												<button type="button" class="layui-btn layui-btn-normal" id="noupload">选择文件</button>
												<input type="hidden" id="laynoupload" value="1"/>
											</td>
										</tr>
										<tr>
											<td height="26" align="center" bgcolor="#FFFFFF">备注:</td>
											<td colspan="3" bgcolor="#FFFFFF">
												<textarea name='order_remark' class="com_info_text" style="width:auto;height:auto;" cols="50" rows="3"></textarea>
											</td>
										</tr>
									</table>
								</div> 
							</div>
						{yun:}/if{/yun}

						{yun:}if $config.alipaytype=='1'&&$config.alipay=='1'{/yun} 
							<div class="alipaytype">
								<div class="payment_zfb">网上银行支付</div>
								<ul class="paytype-list bank-list">
									<li class="item">
										<input type="radio" class="radio" value="ICBCB2C" id="bank-type-ICBCB2C" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国工商银行" for="bank-type-ICBCB2C" class="bank bank--icbc">中国工商银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CMB" id="bank-type-CMB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="招商银行" for="bank-type-CMB" class="bank bank--cmb">招商银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CCB" id="bank-type-CCB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国建设银行" for="bank-type-CCB" class="bank bank--ccb">中国建设银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="ABC" id="bank-type-ABC" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国农业银行" for="bank-type-ABC" class="bank bank--abc">中国农业银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="COMM" id="bank-type-1020" name="pay_bank" onclick="paycheck('alipay');">
										<label title="交通银行" for="bank-type-1020" class="bank bank--boc">交通银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="BOCB2C" id="bank-type-BOCB2C" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国银行" for="bank-type-BOCB2C" class="bank bank--bofc">中国银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CIB" id="bank-type-CIB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="兴业银行" for="bank-type-CIB" class="bank bank--cib">兴业银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CEBBANK" id="bank-type-CEBBANK" name="pay_bank" onclick="paycheck('alipay');">
										<label title="光大银行" for="bank-type-CEBBANK" class="bank bank--cebb">光大银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="SPDB" id="bank-type-SPDB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="上海浦东发展银行" for="bank-type-SPDB" class="bank bank--spdb">上海浦东发展银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="GDB" id="bank-type-GDB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="广东发展银行" for="bank-type-GDB" class="bank bank--gdb">广东发展银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CITIC" id="bank-type-CITIC" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中信银行" for="bank-type-CITIC" class="bank bank--zxyh">中信银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="CMBC" id="bank-type-CMBC" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国民生银行" for="bank-type-CMBC" class="bank bank--cmbc">中国民生银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="SPABANK" id="bank-type-SPABANK" name="pay_bank" onclick="paycheck('alipay');">
										<label title="平安银行" for="bank-type-SPABANK" class="bank bank--pingan">平安银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="BJBANK" id="bank-type-BJBANK" name="pay_bank" onclick="paycheck('alipay');">
										<label title="北京银行" for="bank-type-BJBANK" class="bank bank--bob">北京银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="BJRCB" id="bank-type-BJRCB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="北京农商银行" for="bank-type-BJRCB" class="bank bank--bjrcb">北京农商银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="PSBC-DEBIT" id="bank-type-PSBC-DEBIT" name="pay_bank" onclick="paycheck('alipay');">
										<label title="中国邮政储蓄银行" for="bank-type-PSBC-DEBIT" class="bank bank--pspc">中国邮政储蓄银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="SHRCB" id="bank-type-SHRCB" name="pay_bank" onclick="paycheck('alipay');">
										<label title="上海农商银行" for="bank-type-SHRCB" class="bank bank--shrcb">上海农商银行</label>
									</li>
									<li class="item">
										<input type="radio" class="radio" value="HZCBB2C" id="bank-type-HZCBB2C" name="pay_bank" onclick="paycheck('alipay');">
										<label title="杭州银行" for="bank-type-HZCBB2C" class="bank bank--hzcb">杭州银行</label>
									</li>
								</ul>
							</div> 
						{yun:}/if{/yun}
					</div>
				</div> 

				{yun:}if $config.tenpay=='1'||$config.bank=='1'||$config.alipay=='1'{/yun}
					<div class="payment_fk">
						<input id="dingdan_submit" class="pay_ment_fk_q" type="submit" value="去付款" name="nextstep" />
					</div>
				{yun:}/if{/yun}

				<div style=" float:left"> </div>
				
			</form>
        </div> 
	</div> 
</div> 

<!--支付弹出框-->
<div id="payshow" style="width:450px; position:absolute;left:0px;top:0px; background:#fff; display:none;">
	<div class="payment_tip">
		请在新打开的支付页面上完成付款，付款完成前请不要关闭此窗口。<br>
		如您在支付过程中遇到问题，请联系客服：<span class="payment_tip_s">{yun:}$config.sy_freewebtel{/yun}</span>
	</div>
	<div class="payment_bottom">
		<a href="index.php?c=paylog" class="payment_bottombutt">已完成付款</a>
		<a href="index.php?c=payment&id={yun:}$order.id{/yun}" class="payment_bottom_bth2">重新支付</a>
	</div>
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script> 
{yun:}include file="$comstyle/footer.htm"{/yun}